const Layout = () => import('@/layout/index.vue')

export default {
  name: 'IM',
  path: '/im',
  component: Layout,
  meta: {
    title: '业务管理',
    icon: 'ic:baseline-menu',
    role: ['admin'],
    requireAuth: true,
    order: 4,
  },
  children: [
    {
      name: 'User',
      path: 'user',
      component: () => import('./user/index.vue'),
      meta: {
        title: '用户',
        icon: 'ic:baseline-menu',
        role: ['admin'],
        requireAuth: true,
      },
      children: [
        {
          name: 'UserManage',
          path: 'manage',
          component: () => import('./user/user-manage/index.vue'),
          meta: {
            title: '用户管理',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'UserLoginLog',
          path: 'login_log',
          component: () => import('./user/user-login-log/index.vue'),
          meta: {
            title: '用户登录日志',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'UserLoginStatistics',
          path: 'login_statistics',
          component: () => import('./user/user-login-statistics/index.vue'),
          meta: {
            title: '用户登录统计',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'UserRegisterStatistics',
          path: 'register_statistics',
          component: () => import('./user/user-register-statistics/index.vue'),
          meta: {
            title: '用户注册统计',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
      ],
    },
    {
      name: 'Message',
      path: 'message',
      component: () => import('./message/index.vue'),
      meta: {
        title: '消息管理',
        icon: 'ic:baseline-menu',
        role: ['admin'],
        requireAuth: true,
      },
      children: [
        {
          name: 'SingleChat',
          path: 'single',
          component: () => import('./message/single-chat-record/index.vue'),
          meta: {
            title: '单聊记录',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'GroupChat',
          path: 'group',
          component: () => import('./message/group-chat-record/index.vue'),
          meta: {
            title: '群聊记录',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
      ],
    },
    {
      name: "Group",
      path: "group",
      component: () => import('./group/index.vue'),
      meta: {
        title: '群组',
        icon: 'ic:baseline-menu',
        role: ['admin'],
        requireAuth: true,
      },
      children: [
        {
          name: 'GroupManage',
          path: 'group_manage',
          component: () => import('./group/group-manage/index.vue'),
          meta: {
            title: '群组管理',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'GroupStatistics',
          path: 'group_statistics',
          component: () => import('./group/group-statistics/index.vue'),
          meta: {
            title: '群组统计',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
        {
          name: 'InvalidGroup',
          path: 'invalid_group',
          component: () => import('./group/invalid-group/index.vue'),
          meta: {
            title: '无效群组',
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true,
          },
        },
      ]
    },
    {
      name: "Wallet",
      path: "wallet",
      component: () => import('./wallet/index.vue'),
      meta: {
        title: "钱包红包",
        icon: 'ic:baseline-menu',
        role: ['admin'],
        requireAuth: true
      },
      children: [
        {
          name: "Account",
          path: "account",
          component: () => import('./wallet/account/index.vue'),
          meta: {
            title: "用户账户(钱包)",
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true
          }
        },
        {
          name: "RedEnvelopeManage",
          path: "redenvelope_manage",
          component: () => import('./wallet/redenvelope-manage/index.vue'),
          meta: {
            title: "红包管理",
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true
          }
        },
        {
          name: "RechargeRecords",
          path: "recharge_records",
          component: () => import('./wallet/recharge-records/index.vue'),
          meta: {
            title: "充值记录",
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true
          }
        },
        {
          name: "WithdrawalRecords",
          path: "withdrawal_records",
          component: () => import('./wallet/withdrawal-records/index.vue'),
          meta: {
            title: "提现记录",
            icon: 'ic:baseline-menu',
            role: ['admin'],
            requireAuth: true
          }
        }
      ]
    }
  ],
}
